package com.ruoyi.common.utils.meal;

import com.ruoyi.project.meal.domain.MealMilk;

import java.util.List;

public class MealDataUtils {

    public static List<MealMilk> parseMilk(List<MealMilk> list){
        if(list!=null && list.size()>0){
            for (MealMilk m:list) {
                if("1".equals(m.getPhase())){
                    m.setPhase("一段");
                }else if("2".equals(m.getPhase())){
                    m.setPhase("二段");
                }else if("3".equals(m.getPhase())){
                    m.setPhase("三段");
                }else if("4".equals(m.getPhase())){
                    m.setPhase("四段");
                }
            }
        }
        return list;
    }
}
